<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
list($basicname)=$arguments;
// 是主应用时的菜单
$menus1=array(
	array(
	'title'=>'平台管理','fa'=>'icon-dianpu','url'=>'/index/','child'=>array(
		array('title'=>'群推加群','child'=>array(
			array('url'=>'jy_quntui/index/','title'=>'群推加群概况'),
			array('url'=>'jy_quntui/basic.module_home/cover/ac=index&type=3','title'=>'群推加群入口'),
			array('url'=>'core/account.article_list/','title'=>'公告列表'),
			array('url'=>'core/account.article_fenlei/','title'=>'公告分类'),
		)),
		array('title'=>'参数设置','child'=>array(
			array('url'=>'jy_quntui/setting/basic','title'=>'基本参数设置'),
			array('url'=>'jy_quntui/xieyi/','title'=>'平台协议'),
		)),
	)),
	array('title'=>'群管理','fa'=>'icon-gengduotupian','url'=>'jy_quntui/qun/list/type=0','child'=>array(
		array('title'=>'微信群管理','child'=>array(
			array('url'=>'jy_quntui/qun/list/type=0','title'=>'微信群列表'),
		)),
		array('title'=>'企业微信群','child'=>array(
			array('url'=>'jy_quntui/qun/list/type=1','title'=>'企业微信群'),
		)),
	)),
	array('title'=>'用户管理','fa'=>'icon-gengduotupian','url'=>'jy_quntui/user/list/','child'=>array(
		array('title'=>'用户管理','child'=>array(
			array('url'=>'jy_quntui/user/list','title'=>'普通用户列表'),
			array('url'=>'jy_quntui/user/vip','title'=>'会员列表'),
			array('url'=>'jy_quntui/user/black','title'=>'黑名单'),
			array('url'=>'jy_poster/apiposter//plugin_name=jy_quntui','title'=>'用户海报'),
		)),
	)),
	array('title'=>'员工管理','icon'=>'fa-users','url'=>'jy_quntui/kfgroups/','child'=>array(
		array('title'=>'员工管理','child'=>array(
			array('url'=>'jy_quntui/kfgroups/','title'=>'员工分组'),
			array('url'=>'jy_quntui/kefus/','title'=>'员工列表'),
		)),
	)),
	array('title'=>'财务管理','fa'=>'icon-dixiaofei','url'=>'jy_quntui/red/list/','child'=>array(
		array('title'=>'红包管理','child'=>array(
			array('url'=>'jy_quntui/red/list','title'=>'待发送红包列表'),
			array('url'=>'jy_quntui/red/ok','title'=>'红包发送成功列表'),
			array('url'=>'jy_quntui/red/no','title'=>'红包发送失败列表'),
		)),
		array('title'=>'提现管理','child'=>array(
			array('url'=>'jy_quntui/cashrecord/list','title'=>'申请提现列表'),
			array('url'=>'jy_quntui/cashrecord/ok','title'=>'审核通过列表'),
			array('url'=>'jy_quntui/cashrecord/no','title'=>'审核不通过列表'),
		)),
	)),
	array('title'=>'会员订单','fa'=>'icon-licai','url'=>'jy_quntui/viporder/list/','child'=>array(
		array('title'=>'会员订单','child'=>array(
			array('url'=>'jy_quntui/viporder/list','title'=>'待支付'),
			array('url'=>'jy_quntui/viporder/ok','title'=>'已支付'),
			array('url'=>'jy_quntui/viporder/no','title'=>'已取消'),
		)),
	)),
);
if(empty($basicname)){
	$menus =$menus1?$menus1:$menus2;
	return $menus ;
}else{
	$basicmens = $this->plugin($basicname)->getmenus();
	if(!empty($basicmens)){
		foreach($basicmens as &$v){
			if($v['isplugin'] == 1){
				$v=$menus2[0];
			}
		}
	}
	return $basicmens;
}

